import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
// import {BrowserRouter} from 'react-router-dom'
import {HashRouter} from 'react-router-dom'

// react-router-dom 路由组件库
// 1.BrowserRouter 路由组件
// 2.可以给我们的应用添加路由
ReactDOM.createRoot(document.getElementById('root')).render(
  // <BrowserRouter>
  //   <App />
  // </BrowserRouter>
  <HashRouter>
    <App/>
  </HashRouter>
)
